/*
* © 2010 Autodata Solutions Company. All Rights Reserved
* This source code is the confidential and proprietary information of Autodata Solutions Company.
* The user shall not, in whole or in part, copy, publish, disclose or make any use of this source code
* without the prior written consent of Autodata Solutions Company.
*/
Ext.ns('net.autodata.compare');
(function () {
	var DQ = Ext.DomQuery;
	
	/**
	 * Customized VehiclePanel view to display the BaseVehicle information
	 * @class BaseVehiclePhotoView
	 * @extends net.autodata.compare.BaseVehicleView
	 * @namespace net.autodata.compare
	 */
	var View = Ext.extend(net.autodata.compare.BaseVehicleView, {
		
		imageCfg: {
			imageWidth: 194,
			imageHeight: 95
		},
		
		/**
		 * @method initTemplates
		 */
		initTemplates: function ()
		{
			var ts = this.templates || {};
			
			if (!ts.mainTpl) {				
				ts.mainTpl = new Ext.Template(					
					'<div class="baseVehicle-view">',
						'<div class="vehiclepanel-header"></div>',
						'<div class="vehiclepanel-body">',
							'<div class="vehicle-image"></div>',
							'<div class="vehicle-info"></div>',
						'</div>',
					'</div>',
					{
						compiled: true,
						disableFormats: true
					}
				);
			}
						
			this.templates = ts;
			
			View.superclass.initTemplates.apply(this, arguments);
		}
		
	});
	
	net.autodata.compare.BaseVehiclePhotoView = View;
	
})();